<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap-rem布局-宽度标准化</title>
    <style>
        html{
            /* 字号是屏幕宽度的百分之一 */
            font-size: 1vw;
        }
        /* 等比例缩放布局 */
        .box0{
            width: 50rem;
            height: 50rem;
            background: aqua;
        }
        .box1{
            width: 50rem;
            height: 50rem;
            background: plum;
        }

        html{
            /* 让1rem = 1px 以320px宽度为基准 */
            font-size: 0.3125vw;
        }

        /* 容器 */
        .container{
            width: 310rem;
            margin: 0 auto;
        }
        /* 列表布局 */
        .list{
            margin-right: -5rem;
        }
        .box{
            /* rem 与 排序等价 */
            width: 100rem;
            height: 50rem;
            background: aqua;
            margin-right: 5rem;
            float: left;
            margin-bottom: 5rem;
        }
        .big{
            height: 105rem;
            margin-bottom: 0;
        }
    </style>
</head>
<body>
    <div class="box0"></div>
    <div class="box1"></div>

    <!-- 宽度标准化 -->
    <div class="container">
        <div class="list">
            <div class="box big">001</div>
            <div class="box">002</div>
            <div class="box">003</div>
            <div class="box">004</div>
            <div class="box">005</div>
        </div>
    </div>
</body>
</html>